package com.cykj.service.serviceImpl;

import com.cykj.Mapper.RegisterMapper;
import com.cykj.service.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class registerServicelmpl implements RegisterService {
    @Autowired
    private RegisterMapper registerMapper;
    @Override
    public int Register(String userName,String number, String userPwd, int userSex, int userAge, String userIdNumber, double userWeight, double userHeight) {
        int register = registerMapper.Register(userName,number, userPwd, userSex, userAge, userIdNumber, userWeight, userHeight);
        if(register!=-1){
            return register;
        }else {
            return 0 ;
        }
    }
}
